.class public Lweibo4android/Query;
.super Ljava/lang/Object;
.source "Query.java"


# instance fields
.field private base_app:Z

.field private city:Ljava/lang/Integer;

.field private comorsch:Ljava/lang/String;

.field private count:Ljava/lang/Integer;

.field private endtime:Ljava/util/Date;

.field private filter_ori:I

.field private filter_pic:I

.field private fuid:Ljava/lang/Integer;

.field private gender:Lweibo4android/Gender;

.field private geocode:Ljava/lang/String;

.field private needcount:Z

.field private page:Ljava/lang/Integer;

.field private province:Ljava/lang/Integer;

.field private q:Ljava/lang/String;

.field private rpp:I

.field private sdomain:Ljava/lang/Boolean;

.field private sintro:Ljava/lang/Boolean;

.field private snick:Ljava/lang/Boolean;

.field private sort:I

.field private starttime:Ljava/util/Date;


# direct methods
.method public constructor <init>()V
    .locals 4

    .prologue
    const/4 v3, 0x1

    const/4 v2, 0x0

    const/4 v1, 0x0

    .line 43
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 45
    iput-object v1, p0, Lweibo4android/Query;->snick:Ljava/lang/Boolean;

    .line 46
    const/16 v0, 0x14

    iput v0, p0, Lweibo4android/Query;->rpp:I

    .line 47
    iput-object v1, p0, Lweibo4android/Query;->sdomain:Ljava/lang/Boolean;

    .line 48
    iput-object v1, p0, Lweibo4android/Query;->sintro:Ljava/lang/Boolean;

    .line 49
    iput-object v1, p0, Lweibo4android/Query;->province:Ljava/lang/Integer;

    .line 50
    iput-object v1, p0, Lweibo4android/Query;->city:Ljava/lang/Integer;

    .line 51
    iput-object v1, p0, Lweibo4android/Query;->gender:Lweibo4android/Gender;

    .line 52
    iput-object v1, p0, Lweibo4android/Query;->comorsch:Ljava/lang/String;

    .line 53
    iput v3, p0, Lweibo4android/Query;->sort:I

    .line 54
    iput-object v1, p0, Lweibo4android/Query;->page:Ljava/lang/Integer;

    .line 55
    iput-object v1, p0, Lweibo4android/Query;->count:Ljava/lang/Integer;

    .line 56
    iput-boolean v3, p0, Lweibo4android/Query;->base_app:Z

    .line 57
    iput v2, p0, Lweibo4android/Query;->filter_ori:I

    .line 62
    iput-boolean v2, p0, Lweibo4android/Query;->needcount:Z

    .line 63
    iput-object v1, p0, Lweibo4android/Query;->geocode:Ljava/lang/String;

    .line 43
    return-void
.end method

.method private getParameterValue(Ljava/lang/String;Ljava/lang/Object;)Lweibo4android/http/PostParameter;
    .locals 2
    .parameter "name"
    .parameter "value"

    .prologue
    .line 212
    instance-of v0, p2, Ljava/lang/Boolean;

    if-eqz v0, :cond_1

    .line 213
    new-instance v1, Lweibo4android/http/PostParameter;

    check-cast p2, Ljava/lang/Boolean;

    .end local p2
    invoke-virtual {p2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, "0"

    :goto_0
    invoke-direct {v1, p1, v0}, Lweibo4android/http/PostParameter;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    move-object v0, v1

    .line 221
    :goto_1
    return-object v0

    .line 213
    :cond_0
    const-string v0, "1"

    goto :goto_0

    .line 214
    .restart local p2
    :cond_1
    instance-of v0, p2, Ljava/lang/String;

    if-eqz v0, :cond_2

    .line 215
    new-instance v0, Lweibo4android/http/PostParameter;

    invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, p1, v1}, Lweibo4android/http/PostParameter;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1

    .line 216
    :cond_2
    instance-of v0, p2, Ljava/lang/Integer;

    if-eqz v0, :cond_3

    .line 217
    new-instance v0, Lweibo4android/http/PostParameter;

    check-cast p2, Ljava/lang/Integer;

    .end local p2
    invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I

    move-result v1

    invoke-static {v1}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, p1, v1}, Lweibo4android/http/PostParameter;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1

    .line 218
    .restart local p2
    :cond_3
    instance-of v0, p2, Lweibo4android/Gender;

    if-eqz v0, :cond_4

    .line 219
    new-instance v0, Lweibo4android/http/PostParameter;

    check-cast p2, Lweibo4android/Gender;

    .end local p2
    invoke-static {p2}, Lweibo4android/Gender;->valueOf(Lweibo4android/Gender;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, p1, v1}, Lweibo4android/http/PostParameter;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1

    .line 221
    .restart local p2
    :cond_4
    const/4 v0, 0x0

    goto :goto_1
.end method


# virtual methods
.method public getBase_app()Z
    .locals 1

    .prologue
    .line 140
    iget-boolean v0, p0, Lweibo4android/Query;->base_app:Z

    return v0
.end method

.method public getCity()Ljava/lang/Integer;
    .locals 1

    .prologue
    .line 104
    iget-object v0, p0, Lweibo4android/Query;->city:Ljava/lang/Integer;

    return-object v0
.end method

.method public getComorsch()Ljava/lang/String;
    .locals 1

    .prologue
    .line 116
    iget-object v0, p0, Lweibo4android/Query;->comorsch:Ljava/lang/String;

    return-object v0
.end method

.method public getCount()Ljava/lang/Integer;
    .locals 1

    .prologue
    .line 134
    iget-object v0, p0, Lweibo4android/Query;->count:Ljava/lang/Integer;

    return-object v0
.end method

.method public getEndtime()Ljava/util/Date;
    .locals 1

    .prologue
    .line 170
    iget-object v0, p0, Lweibo4android/Query;->endtime:Ljava/util/Date;

    return-object v0
.end method

.method public getFilter_ori()I
    .locals 1

    .prologue
    .line 146
    iget v0, p0, Lweibo4android/Query;->filter_ori:I

    return v0
.end method

.method public getFilter_pic()I
    .locals 1

    .prologue
    .line 152
    iget v0, p0, Lweibo4android/Query;->filter_pic:I

    return v0
.end method

.method public getFuid()Ljava/lang/Integer;
    .locals 1

    .prologue
    .line 158
    iget-object v0, p0, Lweibo4android/Query;->fuid:Ljava/lang/Integer;

    return-object v0
.end method

.method public getGender()Lweibo4android/Gender;
    .locals 1

    .prologue
    .line 110
    iget-object v0, p0, Lweibo4android/Query;->gender:Lweibo4android/Gender;

    return-object v0
.end method

.method public getGeocode()Ljava/lang/String;
    .locals 1

    .prologue
    .line 183
    iget-object v0, p0, Lweibo4android/Query;->geocode:Ljava/lang/String;

    return-object v0
.end method

.method public getNeedcount()Z
    .locals 1

    .prologue
    .line 176
    iget-boolean v0, p0, Lweibo4android/Query;->needcount:Z

    return v0
.end method

.method public getPage()Ljava/lang/Integer;
    .locals 1

    .prologue
    .line 128
    iget-object v0, p0, Lweibo4android/Query;->page:Ljava/lang/Integer;

    return-object v0
.end method

.method public getParameters()[Lweibo4android/http/PostParameter;
    .locals 14
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lweibo4android/WeiboException;
        }
    .end annotation

    .prologue
    .line 189
    new-instance v8, Ljava/util/ArrayList;

    invoke-direct {v8}, Ljava/util/ArrayList;-><init>()V

    .line 190
    .local v8, list:Ljava/util/List;,"Ljava/util/List<Lweibo4android/http/PostParameter;>;"
    const-class v0, Lweibo4android/Query;

    .line 191
    .local v0, clz:Ljava/lang/Class;,"Ljava/lang/Class<Lweibo4android/Query;>;"
    invoke-virtual {v0}, Ljava/lang/Class;->getDeclaredFields()[Ljava/lang/reflect/Field;

    move-result-object v4

    .line 192
    .local v4, fields:[Ljava/lang/reflect/Field;
    array-length v11, v4

    const/4 v10, 0x0

    :goto_0
    if-lt v10, v11, :cond_0

    .line 208
    invoke-interface {v8}, Ljava/util/List;->size()I

    move-result v10

    new-array v10, v10, [Lweibo4android/http/PostParameter;

    invoke-interface {v8, v10}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    move-result-object v10

    check-cast v10, [Lweibo4android/http/PostParameter;

    return-object v10

    .line 192
    :cond_0
    aget-object v2, v4, v10

    .line 193
    .local v2, field:Ljava/lang/reflect/Field;
    const/4 v12, 0x1

    invoke-virtual {v2, v12}, Ljava/lang/reflect/Field;->setAccessible(Z)V

    .line 194
    invoke-virtual {v2}, Ljava/lang/reflect/Field;->getName()Ljava/lang/String;

    move-result-object v3

    .line 195
    .local v3, fieldName:Ljava/lang/String;
    const/4 v12, 0x0

    const/4 v13, 0x1

    invoke-virtual {v3, v12, v13}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/String;->toUpperCase()Ljava/lang/String;

    move-result-object v5

    .line 196
    .local v5, firstLetter:Ljava/lang/String;
    new-instance v12, Ljava/lang/StringBuilder;

    const-string v13, "get"

    invoke-direct {v12, v13}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v12, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    const/4 v13, 0x1

    invoke-virtual {v3, v13}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    .line 199
    .local v7, getMethodName:Ljava/lang/String;
    const/4 v12, 0x0

    :try_start_0
    new-array v12, v12, [Ljava/lang/Class;

    invoke-virtual {v0, v7, v12}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v6

    .line 200
    .local v6, getMethod:Ljava/lang/reflect/Method;
    const/4 v12, 0x0

    new-array v12, v12, [Ljava/lang/Object;

    invoke-virtual {v6, p0, v12}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v9

    .line 201
    .local v9, value:Ljava/lang/Object;
    if-eqz v9, :cond_1

    .line 202
    invoke-direct {p0, v3, v9}, Lweibo4android/Query;->getParameterValue(Ljava/lang/String;Ljava/lang/Object;)Lweibo4android/http/PostParameter;

    move-result-object v12

    invoke-interface {v8, v12}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 192
    :cond_1
    add-int/lit8 v10, v10, 0x1

    goto :goto_0

    .line 204
    .end local v6           #getMethod:Ljava/lang/reflect/Method;
    .end local v9           #value:Ljava/lang/Object;
    :catch_0
    move-exception v1

    .line 205
    .local v1, e:Ljava/lang/Exception;
    new-instance v10, Lweibo4android/WeiboException;

    invoke-direct {v10, v1}, Lweibo4android/WeiboException;-><init>(Ljava/lang/Exception;)V

    throw v10
.end method

.method public getProvince()Ljava/lang/Integer;
    .locals 1

    .prologue
    .line 98
    iget-object v0, p0, Lweibo4android/Query;->province:Ljava/lang/Integer;

    return-object v0
.end method

.method public getQ()Ljava/lang/String;
    .locals 1

    .prologue
    .line 71
    iget-object v0, p0, Lweibo4android/Query;->q:Ljava/lang/String;

    return-object v0
.end method

.method public getRpp()I
    .locals 1

    .prologue
    .line 80
    iget v0, p0, Lweibo4android/Query;->rpp:I

    return v0
.end method

.method public getSdomain()Ljava/lang/Boolean;
    .locals 1

    .prologue
    .line 86
    iget-object v0, p0, Lweibo4android/Query;->sdomain:Ljava/lang/Boolean;

    return-object v0
.end method

.method public getSintro()Ljava/lang/Boolean;
    .locals 1

    .prologue
    .line 92
    iget-object v0, p0, Lweibo4android/Query;->sintro:Ljava/lang/Boolean;

    return-object v0
.end method

.method public getSnick()Ljava/lang/Boolean;
    .locals 1

    .prologue
    .line 74
    iget-object v0, p0, Lweibo4android/Query;->snick:Ljava/lang/Boolean;

    return-object v0
.end method

.method public getSort()I
    .locals 1

    .prologue
    .line 122
    iget v0, p0, Lweibo4android/Query;->sort:I

    return v0
.end method

.method public getStarttime()Ljava/util/Date;
    .locals 1

    .prologue
    .line 164
    iget-object v0, p0, Lweibo4android/Query;->starttime:Ljava/util/Date;

    return-object v0
.end method

.method public setBase_app(Z)V
    .locals 0
    .parameter "baseApp"

    .prologue
    .line 143
    iput-boolean p1, p0, Lweibo4android/Query;->base_app:Z

    .line 144
    return-void
.end method

.method public setCity(Ljava/lang/Integer;)V
    .locals 0
    .parameter "city"

    .prologue
    .line 107
    iput-object p1, p0, Lweibo4android/Query;->city:Ljava/lang/Integer;

    .line 108
    return-void
.end method

.method public setComorsch(Ljava/lang/String;)V
    .locals 0
    .parameter "comorsch"

    .prologue
    .line 119
    iput-object p1, p0, Lweibo4android/Query;->comorsch:Ljava/lang/String;

    .line 120
    return-void
.end method

.method public setCount(Ljava/lang/Integer;)V
    .locals 0
    .parameter "count"

    .prologue
    .line 137
    iput-object p1, p0, Lweibo4android/Query;->count:Ljava/lang/Integer;

    .line 138
    return-void
.end method

.method public setEndtime(Ljava/util/Date;)V
    .locals 0
    .parameter "endtime"

    .prologue
    .line 173
    iput-object p1, p0, Lweibo4android/Query;->endtime:Ljava/util/Date;

    .line 174
    return-void
.end method

.method public setFilter_ori(I)V
    .locals 0
    .parameter "filterOri"

    .prologue
    .line 149
    iput p1, p0, Lweibo4android/Query;->filter_ori:I

    .line 150
    return-void
.end method

.method public setFilter_pic(I)V
    .locals 0
    .parameter "filterPic"

    .prologue
    .line 155
    iput p1, p0, Lweibo4android/Query;->filter_pic:I

    .line 156
    return-void
.end method

.method public setFuid(Ljava/lang/Integer;)V
    .locals 0
    .parameter "fuid"

    .prologue
    .line 161
    iput-object p1, p0, Lweibo4android/Query;->fuid:Ljava/lang/Integer;

    .line 162
    return-void
.end method

.method public setGender(Lweibo4android/Gender;)V
    .locals 0
    .parameter "gender"

    .prologue
    .line 113
    iput-object p1, p0, Lweibo4android/Query;->gender:Lweibo4android/Gender;

    .line 114
    return-void
.end method

.method public setGeocode(Ljava/lang/String;)V
    .locals 0
    .parameter "geocode"

    .prologue
    .line 186
    iput-object p1, p0, Lweibo4android/Query;->geocode:Ljava/lang/String;

    .line 187
    return-void
.end method

.method public setNeedcount(Z)V
    .locals 0
    .parameter "needcount"

    .prologue
    .line 179
    iput-boolean p1, p0, Lweibo4android/Query;->needcount:Z

    .line 180
    return-void
.end method

.method public setPage(Ljava/lang/Integer;)V
    .locals 0
    .parameter "page"

    .prologue
    .line 131
    iput-object p1, p0, Lweibo4android/Query;->page:Ljava/lang/Integer;

    .line 132
    return-void
.end method

.method public setProvince(Ljava/lang/Integer;)V
    .locals 0
    .parameter "province"

    .prologue
    .line 101
    iput-object p1, p0, Lweibo4android/Query;->province:Ljava/lang/Integer;

    .line 102
    return-void
.end method

.method public setQ(Ljava/lang/String;)V
    .locals 0
    .parameter "q"

    .prologue
    .line 66
    iput-object p1, p0, Lweibo4android/Query;->q:Ljava/lang/String;

    .line 69
    return-void
.end method

.method public setRpp(I)V
    .locals 0
    .parameter "rpp"

    .prologue
    .line 83
    iput p1, p0, Lweibo4android/Query;->rpp:I

    .line 84
    return-void
.end method

.method public setSdomain(Ljava/lang/Boolean;)V
    .locals 0
    .parameter "sdomain"

    .prologue
    .line 89
    iput-object p1, p0, Lweibo4android/Query;->sdomain:Ljava/lang/Boolean;

    .line 90
    return-void
.end method

.method public setSintro(Ljava/lang/Boolean;)V
    .locals 0
    .parameter "sintro"

    .prologue
    .line 95
    iput-object p1, p0, Lweibo4android/Query;->sintro:Ljava/lang/Boolean;

    .line 96
    return-void
.end method

.method public setSnick(Ljava/lang/Boolean;)V
    .locals 0
    .parameter "snick"

    .prologue
    .line 77
    iput-object p1, p0, Lweibo4android/Query;->snick:Ljava/lang/Boolean;

    .line 78
    return-void
.end method

.method public setSort(I)V
    .locals 0
    .parameter "sort"

    .prologue
    .line 125
    iput p1, p0, Lweibo4android/Query;->sort:I

    .line 126
    return-void
.end method

.method public setStarttime(Ljava/util/Date;)V
    .locals 0
    .parameter "starttime"

    .prologue
    .line 167
    iput-object p1, p0, Lweibo4android/Query;->starttime:Ljava/util/Date;

    .line 168
    return-void
.end method
